package com.example.fisttestproject.dao;

import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Entity;
import androidx.room.Insert;
import androidx.room.PrimaryKey;
import androidx.room.Query;

import com.example.fisttestproject.entity.Order;
import com.example.fisttestproject.entity.User;

import java.util.List;

@Dao
public interface OrderDao {

    @Query("SELECT * FROM `order`")
    List<Order> getAll();

    @Insert
    void insertAll(Order... orders);

    @Delete
    void delete(Order order);


}
